package com.example.demo.model.goods.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author STAHYW
 * @since 2021-10-16
 */
@ApiModel(value="ShopGoods对象", description="")
public class ShopGoods extends Model<ShopGoods> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类型id")
    private Integer shopTypeId;

    @ApiModelProperty(value = "商品名称")
    private String shopGoods;

    @ApiModelProperty(value = "数量")
    private Integer shopGoodsCount;

    @ApiModelProperty(value = "图片")
    private String shopGoodsImg;

    @ApiModelProperty(value = "商品价格（分）")
    private Integer shopGoodsPrice;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getShopTypeId() {
        return shopTypeId;
    }

    public void setShopTypeId(Integer shopTypeId) {
        this.shopTypeId = shopTypeId;
    }

    public String getShopGoods() {
        return shopGoods;
    }

    public void setShopGoods(String shopGoods) {
        this.shopGoods = shopGoods;
    }

    public Integer getShopGoodsCount() {
        return shopGoodsCount;
    }

    public void setShopGoodsCount(Integer shopGoodsCount) {
        this.shopGoodsCount = shopGoodsCount;
    }

    public String getShopGoodsImg() {
        return shopGoodsImg;
    }

    public void setShopGoodsImg(String shopGoodsImg) {
        this.shopGoodsImg = shopGoodsImg;
    }

    public Integer getShopGoodsPrice() {
        return shopGoodsPrice;
    }

    public void setShopGoodsPrice(Integer shopGoodsPrice) {
        this.shopGoodsPrice = shopGoodsPrice;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ShopGoods{" +
        "id=" + id +
        ", shopTypeId=" + shopTypeId +
        ", shopGoods=" + shopGoods +
        ", shopGoodsCount=" + shopGoodsCount +
        ", shopGoodsImg=" + shopGoodsImg +
        ", shopGoodsPrice=" + shopGoodsPrice +
        "}";
    }
}
